import {formatDate,request} from "../../utils/utils";
import api from "../../utils/api";
Page({
  data: {
		images:[],
    list:[]
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
    this.getDataPic();
    this.getList();
  },
	getDataPic(){
    this.data.images = [
      'https://www.doapis.com/doapis/public/resources/1625043676791.jpg',
      'https://www.doapis.com/doapis/public/resources/1625042624564.jpg'			
    ]
    this.setData({
      images:this.data.images
    })
	},
  async getList(){
    let res = await request({url:api.getChannel,data:{channel:'channel'}});
    var _list = res.data.data.pageData.card;
    this.setData({list:_list})
  }
})